<%--
  Created by IntelliJ IDEA.
  User: 吴让尧
  Date: 2024/11/8
  Time: 12:02
  To change this template use File | Settings | File Templates.
--%>
<%@ include file="../common/top.jsp" %>

<link rel="stylesheet" href="css/myaccount-style.css">
<div id="Catalog">

    <form action="changePassword" method="post">
        <h3>User Information</h3>
        <c:if test="${not empty changePasswordMsg}">
            <div class="error">${changePasswordMsg}</div>
        </c:if>
        <table>
            <tr>
                <td>Username:</td>
                <td><input type="text" name="firstname" id = "firstname" value="${sessionScope.loginAccount.username}" onblur="checkUsername();"/></td>
            </tr>
            <tr>
                <td colspan="2" id="usernamemsg">
                    <div id="inputmsg">
                        <span id="msg"></span>
                    </div>
                </td>
            </tr>
            <tr>
                <td>New password:</td>
                <td><input type="password" name="newPassword" id="newPassword"/></td>
            </tr>
            <tr>
                <td>Repeat password:</td>
                <td><input type="password" name="newPassword1" id="newPassword1"/></td>
            </tr>
            <tr>
                <td colspan="2" id="repeatedmsg">
                    <span id="repeatedText"></span>
                </td>
            </tr>
        </table>

        <input type="submit" name="setPassword" value="Reset">
        <br>
        <a href="accountInformation">Account Information</a>
        <img align="middle" src="images/separator.gif" />
        <a href="viewListOrder">My Order</a>
    </form>
    <script src="javaScript/myaccount-scripts.js"></script>

</div>

<%@ include file="../common/bottom.jsp"%>>
